<?php
/**
 * Created by PhpStorm.
 * User: yy
 * Date: 2017/1/24
 * Time: 17:34
 */

namespace EWeiLink\JuPai\Http\Requests;

use EWeiLink\JuPai\RequestTrait;
use App\Http\Requests\Request;

class ContactsRequest extends Request
{
    use RequestTrait;
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return $this->getRule();
    }

    private function bind()
    {
        return [
            'customerId' => 'required|numeric',
        ];
    }

    private function relations()
    {
        return [
            'sPlannerId' => 'required|numeric',
            'tPlannerId' => 'required|numeric',
            'contact_id' => 'required|string'
        ];
    }
}
